<?php
/**
 * Single Product Price, including microdata for SEO
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     1.6.4
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

global $post, $product;
?>

<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">

<?php if (has_term(array('Solar Hot Water Installation Training'), 'product_cat')) { ?>

	<p itemprop="price" class="price"><?php echo $product->get_price_html(); ?></p>

	<meta itemprop="priceCurrency" content="<?php echo get_woocommerce_currency(); ?>" />
    
    <?php if (get_post_meta($post->ID, '_stock_status', true) != 'instock') { ?>
        <style>
            p.stock, p.out-of-stock { display:none; }
        </style>
    <?php } else { ?>
    	<link itemprop="availability" href="http://schema.org/<?php echo $product->is_in_stock() ? 'InStock' : 'OutOfStock'; ?>" />
    <?php } ?>

<?php } else { ?>

	<p class="price">Call or Contact Us for Pricing</p>

<?php } ?>

</div>